<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>MenuButton Actions - jQuery EasyUI Demo</title>
    <link href="../../themes/default/easyui.css" rel="stylesheet" type="text/css">
    <link href="../../themes/icon.css" rel="stylesheet" type="text/css">
    <link href="../demo.css" rel="stylesheet" type="text/css">
    <script src="../../jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="../../jquery.easyui.min.js" type="text/javascript"></script>
</head>
<body>
<h2>MenuButton Actions</h2>
<div class="demo-info">
    <div class="demo-tip icon-tip"></div>
    <div>Click the buttons below to perform actions.</div>
</div>
<div style="margin:10px 0;">
    <a class="easyui-linkbutton" href="#" onclick="$('#btn-edit').menubutton('disable')">Disable Edit</a>
    <a class="easyui-linkbutton" href="#" onclick="$('#btn-edit').menubutton('enable')">Enable Edit</a>
</div>
<div style="padding:5px;border:1px solid #ddd">
    <a class="easyui-linkbutton" data-options="plain:true" href="#">Home</a>
    <a class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-edit'" href="#" id="btn-edit">Edit</a>
    <a class="easyui-menubutton" data-options="menu:'#mm2',iconCls:'icon-help'" href="#">Help</a>
    <a class="easyui-menubutton" data-options="menu:'#mm3'" href="#">About</a>
</div>
<div id="mm1" style="width:150px;">
    <div data-options="iconCls:'icon-undo'">Undo</div>
    <div data-options="iconCls:'icon-redo'">Redo</div>
    <div class="menu-sep"></div>
    <div>Cut</div>
    <div>Copy</div>
    <div>Paste</div>
    <div class="menu-sep"></div>
    <div>
        <span>Toolbar</span>
        <div style="width:150px;">
            <div>Address</div>
            <div>Link</div>
            <div>Navigation Toolbar</div>
            <div>Bookmark Toolbar</div>
            <div class="menu-sep"></div>
            <div>New Toolbar...</div>
        </div>
    </div>
    <div data-options="iconCls:'icon-remove'">Delete</div>
    <div>Select All</div>
</div>
<div id="mm2" style="width:100px;">
    <div>Help</div>
    <div>Update</div>
    <div>About</div>
</div>
<div class="menu-content" id="mm3" style="background:#f0f0f0;padding:10px;text-align:left">
    <img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
    <p style="font-size:14px;color:#444;">Try jQuery EasyUI to build your modem, interactive, javascript
        applications.</p>
</div>

</body>
</html>